package com.ys.supplier.action;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;

import com.ys.pojo.TblSupplier;
import com.ys.supplier.service.SupplierService;

@Controller
@RequestMapping("/supplier")
public class SupplierAction {
	@Autowired
	private SupplierService supplierService;
	
	//供应商
	@RequestMapping("/supplier_list")
	public String supplierList(TblSupplier supplier,Model model){
		System.out.println(supplier);
		List<TblSupplier> supplierList = supplierService.getSupplierList(supplier);
		model.addAttribute("supplierList", supplierList);
		return "/jsp/bootstrap/right/supplier.jsp";
	}
}
